// @charset "utf-8";
/**
 * 强弱评级model
 */
define(function (require, exports, module) {

	var qrpjModel = {
		qrpjData : {},
		request : function (param, callback) {
			var self = this;
			var begin = param.begin, end = param.end, url = '';
			if (param.period === 'min') {
				url = 'http://hqstats.10jqka.com.cn/fyzzt.php?date=' + begin;
			} else {
				url = 'http://hqstats.10jqka.com.cn/fyzzt.php?begin=' + begin + '&end=' + end;
			}
			interactions.ajaxJsonp({
				url : url,
				jsonpCallback : 'fyzzt',
				callback : function (result) {
					self.qrpjData = result;
					callback(result);
				}
			});
		}
	};



	module.exports = qrpjModel;
});